﻿//表单验证
$(function () {
    //表单验证样式1
   // $("#form1").validate({
        $("#form2").validate({
        errorPlacement: function (lable, element) {
            element.ligerTip({ content: lable.html(), appendIdTo: lable });
        },
        success: function (lable) {
            lable.ligerHideTip();
        }
    });

    //表单验证样式2--红色文字验证
   // $("#valform2").validate({
         $("#form1").validate({
        errorElement: "span",
        success: "success"
    });
});
